<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Day6作业</title>
		  <script type="text/javascript">

        function printTri(x)
        {   
        	// 将内容打印在 p标签中，p标签的内容居中排列
            document.write("<p align='center'>");
            // 外层循环，打印行内容
            for (var i = 1; i <= x; i++)
            {
            	// 内层循环打印   每一行的内容
                for (var j = 1; j <= x - i + 1; j++)
                {
                    document.write(" ");
                    var icon = "😂";
                    document.write(" " + icon +" ");
                }
                document.write("<br>");
            }
            document.write("</p>");

        }
        printTri(10);
    </script>
	</head>
	<body>
	</body>
</html>
